package com.hanamaki.oop.demo01;

public class Demo03 {

    public static void change(Person person) {
        person.name = "hanamaki"; // 地址
    }
    public static void main(String[] args) {
        // 实例化 Person
        Person person = new Person();
        System.out.println(person.name); // null
        change(person);
        System.out.println(person.name);  // hanamaki
    }
}
// 定义一个 Person类
class Person {
    String name;
}


